import requset from '../../utils/requset'

export default {
  getBanner: () => {
    return requset.get('/banner')
  },
  getCatlist: () => {
    return requset.get("/playlist/catlist")
  },
  getHot: () => {
    return requset.get("/playlist/hot")
  },
  getPlaylist: (offset=0,cat="全部") => {
    return requset.get(`/top/playlist?offset=${offset*50}&cat=${cat}&limit=40`,)
  },
  getHighquality: (cat) => {
    return requset.get(`/top/playlist/highquality?cat=${cat}`,)
  }
}